package cz.martindobias.aladin.gfxtest.component;

import android.content.Context;
import android.view.MotionEvent;
import android.widget.ImageView;
import cz.martindobias.aladin.gfxtest.R;

public class AladinImageView extends ImageView {
    private OverlayController controller;

    public AladinImageView(Context context) {
        super(context);
        this.initView(context);
    }

    private void initView(Context context) {
        this.setImageResource(R.drawable.pf2008_resized);
        this.controller = new OverlayController(this, R.layout.imagebuttons);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        this.controller.setVisible(true);
        return true;
    }
}
